package website.digitalocean.chapter3;

import cn.hutool.core.text.StrFormatter;

/**
 * @author: longhc@citycloud.com.cn
 * @since: 2023/2/9 17:38
 * @version: 1.0
 */
public abstract class Computer {
    public abstract String getRam();

    public abstract String getHdd();

    public abstract String getCpu();

    @Override
    public String toString() {
        return StrFormatter.format("ram:{}; hdd:{};cpu:{}", this.getRam(), this.getHdd(), this.getCpu());
    }
}
